package com.sofwin.service.impl.contents;

import com.sofwin.mapper.CEmployeeMapper;
import com.sofwin.pojo.CEmployee;
import com.sofwin.pojo.CEmployeeExample;
import com.sofwin.service.contents.EmployeeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Project: ssm-parent
 * @Description: TODO
 * @Author : abiao
 * @date Date : 2021年04月26日 下午 5:49
 */
@Service
public class EmployeeServiceImpl implements EmployeeService {

    @Autowired
    private CEmployeeMapper employeeMapper;

    @Override
    public List<CEmployee> selectEmployee(Integer humanId) {
        CEmployeeExample example = new CEmployeeExample();
        CEmployeeExample.Criteria criteria = example.createCriteria();
        criteria.andHumanIdEqualTo(humanId);
        return employeeMapper.selectByExample(example);
    }
}
